//轮播
var mySwiper = new Swiper ('.swiper-container', {
    loop: true, // 循环模式选项
    autoplay: {
        delay:5000,
        stopOnLastSlide: false,
        disableOnInteraction: true,
    },
    // 如果需要分页器
    pagination: {
        el: '.swiper-pagination',
        clickable: true,
        clickableClass : 'my-pagination-clickable',
    },

    // 如果需要前进后退按钮
    navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
    },
});

//json
new Vue({
    el:"#app",
    data:{
        message:"正在获取数据"
    },
    mounted(){
        axios
            .get('json/news.json')
            .then(response => this.message=response.data.urls)
            .catch(function(error){
            console.log(error);
        })
    }
}),
    new Vue({
        el:"#app1",
        data:{
            message:"正在获取数据"
        },
        mounted(){
            axios
                .get('json/news.json')
                .then(response => this.message=response.data.urls1)
        .catch(function(error){
                console.log(error);
            })
        }
    });



